<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="">
  <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
  <meta name="generator" content="Hugo 0.88.1">
  <title>音乐播放器</title>
  <link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/carousel/">
  <!-- Bootstrap core CSS -->
  <link href="../style/bootstrap.min.css" rel="stylesheet">
  <script src="../js/vue.js"></script>


  <script src="../js/bootstrap.bundle.min.js"></script>
 <!-- <script src="../js/axios.js"></script>   -->
  <script src="https://unpkg.com/axios/dist/axios.min.js" ></script> 

  <link href="../style/main.css" rel="stylesheet">
  <style>
  </style>
  <!-- Custom styles for this template -->

</head>

<body>
  <main id="player">
    <!-- 头部 -->
    <header>
      <!-- Fixed navbar -->
      <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
        <div class="container-fluid">
          <a class="navbar-brand" href="#">音乐播放器</a>
          <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
          </button>
          <div class="collapse navbar-collapse" id="navbarCollapse">
            <ul class="navbar-nav me-auto mb-2 mb-md-0">
              <li class="nav-item">
                <a class="nav-link active" aria-current="page" href="../src/index.html">主页</a>
              </li>
              <!-- <li class="nav-item">
                <a class="nav-link" href="../src/details.html">我的</a>
              </li> -->
              <li class="nav-item">
                <a class="nav-link" href="../src/zixun.html" v-on:click="top">热门排行榜</a>
              </li>
            </ul>
            
              <input type="form-control" placeholder="请输入您想要搜索的歌曲" autocomplete="off" v-model="query"
              @keyup.enter="searchMusic" />
            <button class="btn btn-outline-success" v-on:click="searchMusic" type="submit">Search</button>
           
          </div>
        </div>
      </nav>
    </header>
    <div class="wrap" id="mainwrap">
      <!-- 播放器主体区域 -->
      <div class="play_wrap" id="player1">

        <div class="center_con" id="ctr">
          <!-- 搜索歌曲列表 -->
          <div class='song_wrapper' id="s1">
            <ul class="song_list">
              <li v-for="item in musicList">
                <a href="javascript:;" @click="playMusic(item.id)"></a>
                <b>{{ item.name }}</b>
                <span v-if="item.mvid!=0" @click="playMV(item.mvid)"><i></i></span>
              </li>
            </ul>
          </div>
          <!-- 歌曲信息容器 -->
          <div class="player_con" id="p1">
            <img :src="musicCover" class="cover" id="cover1" />
          </div>
          <!-- 评论容器 -->
          <div class="mycommentcontainer" id="c1">
            <div class='mycommentlist'>
              <dl v-for="item in hotComments">
                <dt><img :src="item.user.avatarUrl" alt=""></dt>
                <dd class="name">{{ item.user.nickname}}</dd>
                <dd class="detail">
                  {{ item.content }}
                </dd>
              </dl>
            </div>
          </div>
        </div>
        <div>
          <!-- 音频播放器 -->
          <audio ref='audio' @play="play" @pause="pause" :src="musicUrl" controls autoplay loop class="myaudio"
            id="audio"></audio>
        </div>
        <!-- 视频播放器 -->
        <div class="video_con" v-show="isShow" style="display: none;" id="video_con1">
          <video :src="mvUrl" controls="controls"></video>
          <!-- 外遮罩 -->
          <div class="mask" @click="hide" ></div>
        </div>
      </div>
    </div>
  </main>



  <script src="../js/main.js"></script>
</body>

</html>